<?php
/**



 * @package    sketchup

 * @subpackage 

 * @author     Chris Borkowski {@link http://www.guggenheim.org}

 * @author     Created on 04-April-2009

 */

// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the sketchup Component
 *
 * @package    sketchup
 */

class ViewJury extends JView
{

		function display($tpl = null)
		{
		global $option;
	
		
		$model = &$this->getModel();
		$list = $model->getList();

		for($i = 0; $i < count($list); $i++) 
		{ 
			$row =& $list[$i]; 
			$row->link = JRoute::_('index.php?option=' . $option . '&id=' . $row->id  . '&view=project'); 
		}
		
		$vote_link = JRoute::_('index.php?option=' . $option . '&view=vote' );
		
		$items =& $this->get('Data');      
        $pagination =& $this->get('Pagination');
        
        //set page title
		$document = & JFactory::getDocument();
		$document->setTitle('View Shelters');
		
		// make docmement metadata out of db elements 
		$keywords = JText::_('Googel, Guggenehim, Design It Contest, Digital Art, Architecture,');
		$document->setMetaData ('keywords', $keywords);
        
        //might not use it
        $uri =& JFactory::getURI();
		$this->requestURL =& $uri->toString();
 
        // push data into the template
        $this->assignRef('vote_link', $vote_link);  
        $this->assignRef('items', $items);     
        $this->assignRef('pagination', $pagination);
		
		$this->assignRef('list', $list); 
		parent::display($tpl);	
	}

} 

?>
